package com.wenfs.demo.dao;

import com.wenfs.demo.entity.SysUser;

import java.util.List;

/**
 * @author wefashe
 */
public interface SysUserMapper {
  int deleteByPrimaryKey(String userId);

  int save(SysUser user);

  SysUser selectByPrimaryKey(String userId);

  List<SysUser> selectAll();

  int updateByPrimaryKey(SysUser record);

  /**
   * 通过用户名查询用户信息
   * @param userName
   * @return
   * @throws Exception
   */
  SysUser getUserByUserName(String userName);

  Integer getMaxCode();
}